import { useState } from 'react'
import './App.css'
import { Link, NavLink, Outlet } from 'react-router-dom'

function App() {

  return (
   <div>
    <NavLink to='/data'>data页面</NavLink>
    <br />
    <Link to='/data1'>data1页面</Link>
    <br />
    <Outlet></Outlet>
   </div>
  )
}

export default App
